extern crate serde;
extern crate serde_json;

use serde::{Serialize, Deserialize};

#[derive(Serialize, Deserialize, Debug)]
pub struct Table{
    pub id:i32,//uuid::Uuid,
    pub room_id:i32,//uuid::Uuid,
    pub table_no:i32,
    pub table_desc:String,
    pub is_encrypted:i32,
    pub table_password:String,
}
#[derive(Serialize, Deserialize, Debug)]
pub struct TableListData{
    pub cur_page:i32,
    pub datas:Option<Vec<Table>>,
    pub offset:i64,
    pub over:bool,
    pub page_count:i32,
    pub size:i32,
    pub total:i32,
}
#[derive(Serialize, Deserialize, Debug)]
pub struct TablePageData{
    pub data:TableListData,
    pub error_code:i32,
    pub error_msg:String,
}

